handle -1 argument in order to remove a workaround in Nautilus that forced
authorHavoc Pennington <hp@pobox.com>
Fri, 2 Nov 2001 05:22:07 +0000 (05:22 +0000)
committerHavoc Pennington <hp@src.gnome.org>
Fri, 2 Nov 2001 05:22:07 +0000 (05:22 +0000)
2001-11-01  Havoc Pennington  <hp@pobox.com>

* gtk/gtktext.c (gtk_text_set_position): handle -1 argument in
order to remove a workaround in Nautilus that forced
GTK_ENABLE_BROKEN

* gtk/gtkwidget.c (gtk_widget_modify_style): fix typos in the docs

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtktext.c
gtk/gtkwidget.c

index 4444bffbb1bb265ac4125fa6ec03fab0d52dba2b..95f5e71430f64a5af82f07a137d85fc0c6e9313b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2001-11-01  Havoc Pennington  <hp@pobox.com>
+
+       * gtk/gtktext.c (gtk_text_set_position): handle -1 argument in
+       order to remove a workaround in Nautilus that forced
+       GTK_ENABLE_BROKEN
+
+       * gtk/gtkwidget.c (gtk_widget_modify_style): fix typos in the docs
+
 Thu Nov  1 20:09:31 2001  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkrange.c: Patch from George Lebl to 
index 4444bffbb1bb265ac4125fa6ec03fab0d52dba2b..95f5e71430f64a5af82f07a137d85fc0c6e9313b 100644 (file)
@@ -1,3 +1,11 @@
+2001-11-01  Havoc Pennington  <hp@pobox.com>
+
+       * gtk/gtktext.c (gtk_text_set_position): handle -1 argument in
+       order to remove a workaround in Nautilus that forced
+       GTK_ENABLE_BROKEN
+
+       * gtk/gtkwidget.c (gtk_widget_modify_style): fix typos in the docs
+
 Thu Nov  1 20:09:31 2001  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkrange.c: Patch from George Lebl to 
index 4444bffbb1bb265ac4125fa6ec03fab0d52dba2b..95f5e71430f64a5af82f07a137d85fc0c6e9313b 100644 (file)
@@ -1,3 +1,11 @@
+2001-11-01  Havoc Pennington  <hp@pobox.com>
+
+       * gtk/gtktext.c (gtk_text_set_position): handle -1 argument in
+       order to remove a workaround in Nautilus that forced
+       GTK_ENABLE_BROKEN
+
+       * gtk/gtkwidget.c (gtk_widget_modify_style): fix typos in the docs
+
 Thu Nov  1 20:09:31 2001  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkrange.c: Patch from George Lebl to 
index 4444bffbb1bb265ac4125fa6ec03fab0d52dba2b..95f5e71430f64a5af82f07a137d85fc0c6e9313b 100644 (file)
@@ -1,3 +1,11 @@
+2001-11-01  Havoc Pennington  <hp@pobox.com>
+
+       * gtk/gtktext.c (gtk_text_set_position): handle -1 argument in
+       order to remove a workaround in Nautilus that forced
+       GTK_ENABLE_BROKEN
+
+       * gtk/gtkwidget.c (gtk_widget_modify_style): fix typos in the docs
+
 Thu Nov  1 20:09:31 2001  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkrange.c: Patch from George Lebl to 
index 4444bffbb1bb265ac4125fa6ec03fab0d52dba2b..95f5e71430f64a5af82f07a137d85fc0c6e9313b 100644 (file)
@@ -1,3 +1,11 @@
+2001-11-01  Havoc Pennington  <hp@pobox.com>
+
+       * gtk/gtktext.c (gtk_text_set_position): handle -1 argument in
+       order to remove a workaround in Nautilus that forced
+       GTK_ENABLE_BROKEN
+
+       * gtk/gtkwidget.c (gtk_widget_modify_style): fix typos in the docs
+
 Thu Nov  1 20:09:31 2001  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkrange.c: Patch from George Lebl to 
index 4444bffbb1bb265ac4125fa6ec03fab0d52dba2b..95f5e71430f64a5af82f07a137d85fc0c6e9313b 100644 (file)
@@ -1,3 +1,11 @@
+2001-11-01  Havoc Pennington  <hp@pobox.com>
+
+       * gtk/gtktext.c (gtk_text_set_position): handle -1 argument in
+       order to remove a workaround in Nautilus that forced
+       GTK_ENABLE_BROKEN
+
+       * gtk/gtkwidget.c (gtk_widget_modify_style): fix typos in the docs
+
 Thu Nov  1 20:09:31 2001  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkrange.c: Patch from George Lebl to 
index 4444bffbb1bb265ac4125fa6ec03fab0d52dba2b..95f5e71430f64a5af82f07a137d85fc0c6e9313b 100644 (file)
@@ -1,3 +1,11 @@
+2001-11-01  Havoc Pennington  <hp@pobox.com>
+
+       * gtk/gtktext.c (gtk_text_set_position): handle -1 argument in
+       order to remove a workaround in Nautilus that forced
+       GTK_ENABLE_BROKEN
+
+       * gtk/gtkwidget.c (gtk_widget_modify_style): fix typos in the docs
+
 Thu Nov  1 20:09:31 2001  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkrange.c: Patch from George Lebl to 
index d5b5987abec2d5ea405c5bf6a6808fb7eb4e08ad..ca0e86f9db4adf218223708216bb8d82aabb1ae7 100644 (file)
@@ -1175,6 +1175,9 @@ gtk_text_set_position (GtkOldEditable *old_editable,
                       gint            position)
 {
   GtkText *text = (GtkText *) old_editable;
+
+  if (position < 0)
+    position = gtk_text_get_length (text);                                    
   
   undraw_cursor (text, FALSE);
   text->cursor_mark = find_mark (text, position);
index 267657299a26183e805d93e851c108a3ec524ddb..20da6016c2a4d9a8b6843797385806195d97bfe9 100644 (file)
@@ -3691,7 +3691,7 @@ gtk_widget_get_style (GtkWidget *widget)
  * @style: the #GtkRcStyle holding the style modifications
  * 
  * Modify style values on the widget. Modifications made using this
- * technique take precendence over style values set via an RC file,
+ * technique take precedence over style values set via an RC file,
  * however, they will be overriden if a style is explicitely set on
  * the widget using gtk_widget_set_style(). The #GtkRcStyle structure
  * is designed so each field can either be set or unset, so it is
@@ -3705,8 +3705,8 @@ gtk_widget_get_style (GtkWidget *widget)
  * make your modifications to the returned style, then call
  * gtk_widget_modify_style() with that style. On the other hand,
  * if you first call gtk_widget_modify_style(), subsequent calls
- * to such functions gtk_widget_modify_fg() will be have a cumulative
- * effect with the inital modifications.
+ * to such functions gtk_widget_modify_fg() will have a cumulative
+ * effect with the initial modifications.
  **/
 void       
 gtk_widget_modify_style (GtkWidget      *widget,